package com.tao.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

//    设置首页
    @RequestMapping("/")
    public String index(){

        return "forward:hellow.html";
    }

    @RequestMapping("/tologin")
    public String tologin(){
        return "forward:login.html";
    }

//  "/logout"
@RequestMapping("/logout")
public String logout(){
    return "forward:logout.html";
}

//    /druid/weburi.html
@RequestMapping("/druid")
public String druidIndex(){

    return "druid/weburi.html";
}
}
